/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E20D6F34-51F2-466B-A1D7-14250EC23D53"}
 */
function onAction_inicial(event) {
	forms.inicial.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"EC6CEB1C-586A-4EEF-92F8-8C46E592F202"}
 */
function onAction_log(event) {
	forms.log_operaciones_list.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"B6B23FEA-D78A-481B-B964-8A45A99C8AE1"}
 */
function iraEmpresa(event) {
	forms.empresa_dtl.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"2E9F3805-EB70-4138-A67D-76B859752D97"}
 */
function iraFuncionesAdicionales(event) {
	forms.fac_elect_adicionales.controller.show()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"738BD5F1-44F1-4F8F-9F52-71F0A712DDF3"}
 */
function iraConsultas(event) {
	forms.factura_cab_list.controller.show()
}

/**
 * Callback method for when form is shown.
 *
 * @param {Boolean} firstShow form is shown first time after load
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"459E2618-7C0F-4997-95AA-C5A2AACC258E"}
 */
function onShow(firstShow, event) {
	elements.btn_consultas.visible = (application.getSolutionName() == 'factura_electronica')
	elements.btn_pendientes.visible = (application.getSolutionName() == 'factura_electronica_bd')
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"60762B85-1CFA-4DB9-A7EA-AAC2CA75E8A6"}
 */
function salir(event) {
	application.exit()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E6D976F7-AC43-4F01-8D4C-EE2E18ADB719"}
 */
function iraPendientes(event) {
	forms.factura_cab_arreglo.controller.show()
}
